package com.mooke.service.impl;


import com.mooke.dao.Impl.UserloginDaoImpl;
import com.mooke.entity.Userlogin;
import com.mooke.service.UserloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserloginServiceImpl implements UserloginService {

    @Autowired
    private UserloginDaoImpl userloginDao ;

    @Override
    public boolean login(String id, Userlogin userEntity){
        return userloginDao.login(id,userEntity);
    };

    @Override
    public Userlogin queryrole(String id, Userlogin userEntity){
        return  userloginDao.queryrole(id,userEntity);
    };

    @Override
    public Userlogin foundPassword(String id, Userlogin userEntity){
        return  userloginDao.foundPassword(id,userEntity);
    };

    @Override
    public boolean updateUserLoginAdmin(String id, Userlogin UserEntity){
        return userloginDao.updateUserLoginAdmin(id,UserEntity);
    };

}
